<?php

define('ROOT_PATH', __DIR__ . '/..');


require_once __DIR__ . "/EnvWatcher.php";
// require_once __DIR__ . "/EnvConfig.php";
// require_once ROOT_PATH . "/config/Config.php";

// require_once ROOT_PATH . "/controller/api/BaseController.php";
// require_once ROOT_PATH . "/controller/api/UserController.php";
// require_once ROOT_PATH . "/dao/UserDao.php";
// 加载controller和dao下所有的php文件
foreach (glob(ROOT_PATH . "/config/*.php") as $filename) {
        require_once $filename;
}
foreach (glob(ROOT_PATH . "/controller/api/*.php") as $filename) {
        require_once $filename;
}
foreach (glob(ROOT_PATH . "/dao/*.php") as $filename) {
        require_once $filename;
}
foreach (glob(ROOT_PATH . "/model/*.php") as $filename) {
        require_once $filename;
}